package com.HMI;

@SuppressWarnings("serial")
public class PHWindow extends GraphWindow {

	public PHWindow(int x, int y, int width, int height) {
		super(x, y, width, height);
		labelTopRow("pH level");
		labelBottomRow("");
		setTopRowValue("7.50");
		setBottomRowValue("");
		addGraph("com/Resources/ph_graph.png");
	}
	
	public void setPhLevel(float level) {
		setTopRowValue("" + level);
	}

	public void setCO2Pressure(int pressure) {
		setBottomRowValue("" + pressure + " psi");
	}
	
	public void updateXaxis() {
		updateXaxisTimeLabels();
	}
}
